﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits=" DocumentManagement.Views.BaoGaoDetail" %>

<%@ Import Namespace="DocumentManagement.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        报告详情</h2>
    <div>
        <div>
            文件编号：<%=this.Model.BG.wjbh %>
        </div>
        <div>
            委托来源：<%=this.Model.BG.wtly %>
        </div>
        <div>
            经办人：<%=this.Model.BG.wtr %>
        </div>
        <div>
            委托方：<%=this.Model.BG.wtf %>
        </div>
        <div>
            项目座落：<%=this.Model.BG.xmzl %>
        </div>
        <div>
            建筑面积：<%=this.Model.BG.jzhmj %>
        </div>
        <div>
            土地面积：<%=this.Model.BG.tdmj %>
        </div>
        <div>
            业态：<%= Utility.GetEnumText((YeTai)this.Model.BG.yt)%>
        </div>
        <div>
            竣工日期：<%=this.Model.BG.jgrq %>
        </div>
        <div>
            建筑层高：<%=this.Model.BG.jzhcg %>
        </div>
        <div>
            评估总价：<%=this.Model.BG.pgzj %>
        </div>
        <div>
            评估单价：<%=this.Model.BG.pgdj %>
        </div>
        <div>
            评估净值：<%=this.Model.BG.pgjzh %>
        </div>
        <div>
            现场勘查员：<%=this.Model.BG.xchkchy %>
        </div>
        <div>
            项目区域：<%=this.Model.BG.xmqy %>
        </div>
        <div>
            估价起始日期:
            <%=this.Model.BG.gjqshrq %>
        </div>
        <div>
            估价完成日期：<%=this.Model.BG.pgwchrq %>
        </div>
        <div>
            估价时点：<%=this.Model.BG.gjshd %>
        </div>
        <div>
            估价作业人员：<%=this.Model.BG.gjzyry %>
        </div>
        <div>
            项目名称：<%=this.Model.BG.xmmch %>
        </div>
        <div>
            容积率：<%=this.Model.BG.rjl %>
        </div>
        <div>
            土地取得方式 ：<%=this.Model.BG.tdqdfsh %>
        </div>
        <div>
            房屋类型：<%=this.Model.BG.fwlx %>
        </div>
        <div>
            土地登记用途：<%=this.Model.BG.tddjyt %>
        </div>
        <div>
            估价方法：<%=this.Model.BG.gjff %>
        </div>
        <div>
            估价目的：<%=this.Model.BG.gjmd %>
        </div>
        <div>
            楼面地价 ：<%=this.Model.BG.lmdj %>
        </div>
        <div>
            产权人：<%=this.Model.BG.chqr %>
        </div>
        <div>
            土地总价格：<%=this.Model.BG.tdzjg %>
        </div>
        <div>
            开票金额：<%=this.Model.BG.kpje%>
        </div>
        <div>
            实收金额：<%=this.Model.BG.shshje%>
        </div>
        <div>
            发票编号：<%=this.Model.BG.fpbh%>
        </div>
        <div>
            收费日期：<%=this.Model.BG.shfrq%>
        </div>
        <div>
            是否全部完成：<%=this.Model.BG.isDone ? "是" : "否"%></div>
        <%if (this.Model.BG.YuGuDanReference.EntityKey != null)
          {%>
        <div>
            <a target="_blank" href="<%=this.Url.Action("ShowYuGuDanDetail", "yugudan", new {id = this.Model.BG.YuGuDanReference.EntityKey.GetKeyValueByName("id")}) %>">
                相关联的预估单 </a>
        </div>
        <%} %>
        <div>
            <%if (this.Model.BG.hasAttachment)
              { %>
            <a href="<%=this.Url.Action("DownloadBaoGaoAttachment", "BaoGao", new {id= this.Model.BG.id})%>">
                报告附件</a>
            <%} %>
        </div>
    </div>
    <div>
        <hr />
        <p>
            审批历史纪录</p>
        <table>
            <tr>
                <td>
                    审批人工号
                </td>
                <td>
                    审批阶段
                </td>
                <td>
                    是否审批成功
                </td>
                <td>
                    备注
                </td>
            </tr>
            <%foreach (var h in this.Model.BGAuditHistory)
              { %>
            <tr>
                <td>
                    <%=h.creatorId %>
                </td>
                <td>
                    <%=Utility.GetEnumText((BaoGaoState)h.state) %>
                </td>
                <td>
                    <%=h.isSuccess ? "成功": "失败" %>
                </td>
                <td>
                    <textarea readonly="readonly" cols="64" rows="5"><%=h.comment %></textarea>
                </td>
            </tr>
            <%} %>
        </table>
    </div>
</asp:Content>
